package com.anyou.mall.pla.service.impl;

import java.util.List;
import com.anyou.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.anyou.mall.pla.mapper.ShoShopVipTopUpOrderMapper;
import com.anyou.mall.pla.domain.ShoShopVipTopUpOrder;
import com.anyou.mall.pla.service.IShoShopVipTopUpOrderService;

/**
 * 会员商家充值订单Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-04-22
 */
@Service
public class ShoShopVipTopUpOrderServiceImpl implements IShoShopVipTopUpOrderService 
{
    @Autowired
    private ShoShopVipTopUpOrderMapper shoShopVipTopUpOrderMapper;

    /**
     * 查询会员商家充值订单
     * 
     * @param vipShopTopUpOrderId 会员商家充值订单主键
     * @return 会员商家充值订单
     */
    @Override
    public ShoShopVipTopUpOrder selectShoShopVipTopUpOrderByVipShopTopUpOrderId(Long vipShopTopUpOrderId)
    {
        return shoShopVipTopUpOrderMapper.selectShoShopVipTopUpOrderByVipShopTopUpOrderId(vipShopTopUpOrderId);
    }

    /**
     * 查询会员商家充值订单列表
     * 
     * @param shoShopVipTopUpOrder 会员商家充值订单
     * @return 会员商家充值订单
     */
    @Override
    public List<ShoShopVipTopUpOrder> selectShoShopVipTopUpOrderList(ShoShopVipTopUpOrder shoShopVipTopUpOrder)
    {
        return shoShopVipTopUpOrderMapper.selectShoShopVipTopUpOrderList(shoShopVipTopUpOrder);
    }

    /**
     * 新增会员商家充值订单
     * 
     * @param shoShopVipTopUpOrder 会员商家充值订单
     * @return 结果
     */
    @Override
    public int insertShoShopVipTopUpOrder(ShoShopVipTopUpOrder shoShopVipTopUpOrder)
    {
        shoShopVipTopUpOrder.setCreateTime(DateUtils.getNowDate());
        return shoShopVipTopUpOrderMapper.insertShoShopVipTopUpOrder(shoShopVipTopUpOrder);
    }

    /**
     * 修改会员商家充值订单
     * 
     * @param shoShopVipTopUpOrder 会员商家充值订单
     * @return 结果
     */
    @Override
    public int updateShoShopVipTopUpOrder(ShoShopVipTopUpOrder shoShopVipTopUpOrder)
    {
        return shoShopVipTopUpOrderMapper.updateShoShopVipTopUpOrder(shoShopVipTopUpOrder);
    }

    /**
     * 批量删除会员商家充值订单
     * 
     * @param vipShopTopUpOrderIds 需要删除的会员商家充值订单主键
     * @return 结果
     */
    @Override
    public int deleteShoShopVipTopUpOrderByVipShopTopUpOrderIds(Long[] vipShopTopUpOrderIds)
    {
        return shoShopVipTopUpOrderMapper.deleteShoShopVipTopUpOrderByVipShopTopUpOrderIds(vipShopTopUpOrderIds);
    }

    /**
     * 删除会员商家充值订单信息
     * 
     * @param vipShopTopUpOrderId 会员商家充值订单主键
     * @return 结果
     */
    @Override
    public int deleteShoShopVipTopUpOrderByVipShopTopUpOrderId(Long vipShopTopUpOrderId)
    {
        return shoShopVipTopUpOrderMapper.deleteShoShopVipTopUpOrderByVipShopTopUpOrderId(vipShopTopUpOrderId);
    }
}
